﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="/Scripts/szjt-allScripts.js" type="text/javascript"></script>
</head>
<body>
    <div id="coachInfo">
        <table id="Coach" class="szjt-edittable" width="100%">
            <input type="hidden" id="Coach_CoachGuid" class="easyui-validatebox"/>
            <tr>
                <td required="true">
                    教练姓名
                </td>
                <td>
                    <input id="Coach_CoachName" type="text" class="easyui-validatebox" required="true" />
                </td>
                <td>
                    教练年龄
                </td>
                <td>
                    <input id="Coach_CoachAge" type="text" class="easyui-validatebox" />
                </td>
            </tr>
            <tr>
                <td required="true">
                    教练性别
                </td>
                <td>
                    <select id="Coach_CoachSex" type="text" class="szjt-codecombo" required="true" category="性别" />
                </td>
                <td required="true">
                    教练状态
                </td>
                <td>
                    <select id="Coach_CoachStatus" type="text" class="szjt-codecombo" required="true"
                        category="教练状态1" />
                </td>
            </tr>
        </table>
    </div>
        <script type="text/javascript">
            $(document).ready(function () {
                //审批主体信息
                var $userAppXml = $(utility.xml.convertXmlStringToDoc(PrjConstant.Business.Coach.CoachInfo.Template));
                // $userAppXml.find("CoachStatus").text(PrjConstant.CoachStatus.Begin);
                $("#coachInfo").formpanel({
                    formType: "edit",
                    formTemplate: $userAppXml[0].xml,
                    guidNode: "CoachGuid",
                    guidInput: "#Coach_CoachGuid",
                    taskGuid: PrjConstant.SysInfo.TaskGuid,
                    dataType: PrjConstant.Business.Coach.CoachInfo.DataType,
                    onExecuteComplete: function (submitResult) {
                        utility.message.promptOperationResult("保存", "教练信息", (submitResult == 0));
                        if (submitResult == 0) {
                            utility.page.closeDialog(true);
                        }
                        //$.fn.szjt_popupDialog("close");
                    }
                });
                //            debugger;
                //            $("#UserAppTable_CoachMemo").val("tests");
                //            $("#UserAppTable_CoachFormID").val(dataService.getApplyformID(PrjConstant.Asset.UserCoach.DataType, Session.LoginUser().UserGuid))
                //审批按钮
            });
    </script>
</body>
</html>
